package com.javacoo.xservice.base.support.security;

import com.javacoo.xkernel.spi.Spi;
import com.javacoo.xservice.base.support.security.config.SecurityConfig;

/**
 * 签名验签服务
 * <li></li>
 *
 * @author: duanyong@jccfc.com
 * @since: 2021/4/15 18:03
 */
@Spi(SecurityConfig.DEFAULT_IMPL)
public interface SignService {
    /**
     * 校验签名
     * <li></li>
     * @author duanyong@jccfc.com
     * @date 2021/4/15 18:31
     * @param verifySignBean: 待校验签名对象
     * @return: boolean
     */
    boolean verifySign(SignBean verifySignBean);
    /**
     * 签名
     * <li></li>
     * @author duanyong@jccfc.com
     * @date 2021/4/15 18:31
     * @param signBean: 待签名对象
     * @return: java.lang.String 签名字符串
     */
    String sign(SignBean signBean);
}
